<?php
namespace Admin\Controller;



class ProjectPlanGanttController extends AbstractController  {
	
	protected $From;

	public function _initialize(){
		$this->From = D('ProjectImpPlan');
    }
	
    public function index(){
    	$id = (int)I('id');
    	$this->assign("projectID",$id);
    	$res = $this->From->MyshowGantt();
		$this->assign("list",$res['list']);
		$this->assign("data",json_encode($res['data'],JSON_UNESCAPED_UNICODE));
		//echo json_encode($res['data'],JSON_UNESCAPED_UNICODE);
	//	exit();
    	//$this->assign("page",$res['page']);
    	$this->display("Project/ProjectPlanGantt/index");
    }
}